//
//  RealNameAuthView.m
//  SP2P
//
//  Created by Eternal on 2017/8/14.
//  Copyright © 2017年 EIMS. All rights reserved.
//

#import "RealNameAuthView.h"

@implementation RealNameAuthView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self = [[[NSBundle mainBundle]loadNibNamed:@"RealNameAuthView" owner:self options:nil]lastObject];
        self.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.7];
        [self labelFont];
        }
    return self;
}

- (void)labelFont{
    self.realNameView.layer.cornerRadius = 5.0;
    self.realNameView.layer.masksToBounds = YES;
    self.prompLabel.font = KFontSize(15);
    self.titleLabel1.font = KFontSize(10);
    self.titleLabel2.font = KFontSize(10);
    self.titleLabel3.font = KFontSize(10);
    self.contentLabel1.font = KFontSize(9);
    self.contentLabel2.font = KFontSize(9);
    self.contentLabel3.font = KFontSize(9);
    self.contentBtn.titleLabel.font = KFontSize(14);
    
}

// 显示视图
-(void)showView{
    self.frame = AppDelegateInstance.window.frame;
    [AppDelegateInstance.window addSubview:self];
}
-(void)cancelView{
    
    [self removeFromSuperview];
}
// 隐藏视图
- (IBAction)clickCancel:(id)sender {
    [self cancelView];
}

@end
